#
# a = {"a":1,"b":2}
# b = {"a":1,"b":2,"c":3}
#
# for i,j in a.items():
#     print(i,j)
#     if i in b.keys():
#         print(i)
#         if j == b[i]:
#             print("a的值存在与b中")
from common.logger import *

@decorate_log
def assert_api(actual_data,expect_data):
    try:
        a = expect_data
        b = actual_data
        for i,j in a.items():
            # print(i,j)
            if i in b.keys():
                # print(i)
                assert j == b[i]
        # for i in a.keys():
        #     print(i)
        #     if i == "data":
        #         a = a['data']
        #         if i in b.keys():
        #             assert a == b[i]
    except AssertionError as e:
        raise e
